<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加禁用权限</title>
<link href="<?=css_path();?>common.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="<?=public_js_path();?>jquery.js"></script>
<script language="javascript">
$(document).ready(function() {
	<?php if(!empty($node)):?>
	$("#power").load('<?php echo site_url("adminpower/getfuns/".$action_name);?>');
	$("#action_name").change( function() {
	  var val = $('#action_name').val();
	  url = "<?=base_url()?>admin.php/adminpower/getfuns/"+val;
	  $("#power").load(url);
	});
	<?php endif;?>
});
</script>
</head>
<body>
<form id="form1" name="form1" method="post" action="<?php echo site_url("adminpower/add");?>">
    <div id="man_zone">
      <table width="99%" border="0" align="center" id="datalist"  cellpadding="3" cellspacing="1" class="table_style">
         <tr>
          <td colspan="2" class="center_title">添加禁用权限</td>
        </tr>
        <tr>
            <td width="20%" align="right"><span class="center_title">控制器名</span>:</td>
       	    <td>
              <select name="action_name" id="action_name">
              <?php if(!empty($node)):?>
              <?php foreach($node as $v):?>
                   <option value="<?php echo $v->action_name;?>"><?php echo $v->intro;?></option>
              <?php endforeach;?>
              <?php endif;?>
              </select>
            </td>
        </tr>
      </table>
     <div id="power"></div>
     <table width="99%" border="0" align="center" id="datalist"  cellpadding="3" cellspacing="1" class="table_style">
  	 <tr>
         <td colspan="2" class="center_title"><input type="submit" name="" value="提交" /></td>
    </tr>
    </table>
     </div>
</form>
</body>
</html>